5178a820a030ed05dea6e38ddb2ca351fa2f10de,plugins/git4idea/src/git4idea/actions/GitCompareWithBranchAction.java,OnBranchChooseRunnable,showDiffWithBranch,#Project#VirtualFile#String#String#,190

Before Change


        fileDoesntExistInBranchError(project, file, branchToCompare);
        return;
      }
      LOG.assertTrue(currentRevisionNumber != null,
                     String.format("Current revision number is null for file [%s] and branch [%s]", filePath, head));

      // constructing the revision with human readable name (will work for files comparison however).
      final VcsFileRevision compareRevision =

After Change


        return;
      }

      if (currentRevisionNumber == null) {
        LOG.error(String.format("Current revision number is null for file [%s] and branch [%s]", filePath, head));
        return;
      }

      // constructing the revision with human readable name (will work for files comparison however).
      final VcsFileRevision compareRevision =